<div class="isi">
        <?php echo anchor("admin_produk/tambah", "Tambah Data Produk ", "class='button' style='color:white;'") ?>
        <table id="laporan" class="display"  >
            <thead>
                <tr>
                    <th width="5%;">No</th>
                    <th width="10%;">ID</th>
                    <th>Nama Produk</th>
                    <th>Warna</th>        
                    <th width="13%">Harga</th>
                    <th width="10%">Disc (%)</th>
                    <th width="5%">Status</th>
                    <th width="5%">Tindakan</th>
                </tr>            
            </thead>
            <tbody>
                <?php
                $x = 1;
                $lib_rupiah = new Format_rupiah();
                $img_lihat = $this->lib_button->lihat_icon();
                $img_delete=$this->lib_button->delete_icon();
                foreach ($list as $dt) {
                    $link_lihat = anchor('admin_produk/view_det/' . $dt->id, $img_lihat);
                    $link_hapus=  anchor('admin_produk/delete/'. $dt->id, $img_delete,array('onClick'=>'return confirm(\'Apa anda yakin akan menghapus data ini ?\');'));
                    echo "<tr>";
                    echo "<td> $x</td>";
                    echo "<td> $dt->id </td>";
                    echo "<td> $dt->nama_produk </td>";
                    echo "<td> $dt->warna </td>";
                    echo "<td align=right> ".$lib_rupiah->rupiah($dt->harga)." </td>";
                    echo "<td align=center> $dt->disk  %</td>";
                    if($dt->status){
                        $stat="Aktif";
                    }
                    else{
                        $stat="Pasif";
                    }
                    echo "<td align=center> $stat</td>";
                    echo "<td> $link_lihat $link_hapus</td>";
                    echo "</tr>";
                    $x++;
                }
                ?>

            </tbody>

        </table>   
    <div class="clear"></div>
</div>